<?php
class Observable implements QuickObservable{
    protected $observes;
    protected $duck;
    public function __construct(QuickObservable $duck)
    {
        $this->duck = $duck;
    }

    public function notify()
    {
        foreach ($this->observes as $ob)
        {
            $ob->update($this->duck);
        }
    }
    public function register(Observe $ob)
    {
        $this->observes[] = $ob;
    }
}